package com.wlcorp.forcazamis.domain.confirm;

import java.util.Date;

import com.wlcorp.forcazamis.domain.system.Staff;
import com.wlcorp.forcazamis.sys.BaseBean;
import com.wlcorp.forcazamis.sys.util.AppConstant;

public class ConfirmDetail extends BaseBean {
	private static final long serialVersionUID = 7175842972707465723L;
	private Long id;
	private Long confirmId;
	private Confirm confirm;
	private Long confirmerId;
	private Staff confirmer;
	private Integer confirmResult;
	private Date confirmDate;
	private String memo;
	private boolean deleteFlag;

	public boolean isDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public Confirm getConfirm() {
		return confirm;
	}

	public void setConfirm(Confirm confirm) {
		this.confirm = confirm;
	}

	public Date getConfirmDate() {
		return confirmDate;
	}

	public void setConfirmDate(Date confirmDate) {
		this.confirmDate = confirmDate;
	}

	public Staff getConfirmer() {
		return confirmer;
	}

	public void setConfirmer(Staff confirmer) {
		this.confirmer = confirmer;
	}

	public Long getConfirmerId() {
		return confirmerId;
	}

	public void setConfirmerId(Long confirmerId) {
		this.confirmerId = confirmerId;
	}

	public Long getConfirmId() {
		return confirmId;
	}

	public void setConfirmId(Long confirmId) {
		this.confirmId = confirmId;
	}

	public Integer getConfirmResult() {
		return confirmResult;
	}

	public void setConfirmResult(Integer confirmResult) {
		this.confirmResult = confirmResult;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getConfirmResultName() {
		String confirmResultName = "";
		if (AppConstant.CONFIRM_RESULT_NOT_PASS == confirmResult) {
			confirmResultName = "未通过";
		} else if (AppConstant.CONFIRM_RESULT_PASS == confirmResult) {
			confirmResultName = "通过";
		}
		return confirmResultName;
	}
}
